package com;

import com.solo_project.Player;
import org.junit.Before;
import org.testng.annotations.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

/**
 * Created by ThoughtWorker on 1/16/14.
 */
public class PlayerTest {
    private static final String NAME1 = "Dan Park" ;
    private static final String TEAM1 = "ThoughtWorkers" ;
    private static final Integer NUMBER1 = 1 ;
    private static final Integer AGE1 = 27;

    @Before
    public void setUp() throws Exception {
    }

    @Test
    public void PlayerShouldHaveNameTeamNumberAndAge(){
        Player player = new Player(NAME1, TEAM1, NUMBER1, AGE1);
        assertThat(player.name(), is(NAME1));
        assertThat(player.team(), is(TEAM1));
        assertThat(player.number(), is(NUMBER1));
        assertThat(player.age(), is(AGE1));
    }


}
